package sc.common.util.demo;

import java.util.ArrayList;
import java.util.List;

public class AUtil {

	public static String getA() {
		return "A";
	}

	public static Sth getSth(int n) {
		Sth sth = new Sth();
		sth.str = "abc";
		if (sth != null)
			sth.num = n + 1;
		return sth;
	}

	public static List<String> getList() {
		ArrayList<String> ret = new ArrayList<String>();
		ret.add("木村拓哉");
		ret.add("铁木真");
		ret.add("阿童木");
		return ret;
	}

	public static String sleep(int milliseconds) {
		try {
			Thread.sleep(milliseconds * 1000);
		} catch (InterruptedException e) {
			e.printStackTrace();
			return e.getMessage();
		}
		return "slept " + milliseconds + "s";
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {

	}

}
